<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title></title>
<link rel="stylesheet" type="text/css" href="css/result.css" />
<link rel="stylesheet" type="text/css" href="css/total.css" />
<script type="text/javascript" src="js/jquery-3.1.1.min.js"></script>
<script src="plug-in/layer-v3.0.3/layer/layer.js" type="text/javascript"
	charset="utf-8"></script>
</head>

<body>
	<ul class="total">
		<li><a href="#">考试</a></li>
		<li><a href="#">面试题</a></li>
		<li><a href="#">菜鸟联盟</a></li>
		<li><a href="#">招聘</a></li>
		<li><a href="#">贴吧</a></li>
		<li><a href="#">资源下载</a></li>
		<c:if test="${not empty userinfo }">
			<li><a href="userinfocontr/finduserinfo"><span style="color:blue;">${userinfo.nikename }</span></a>
			</li>
			<li><a href="userinfocontr/userout">退出</a></li>
		</c:if>
		<c:if test="${empty userinfo }">
			<li><input type="button" value="登录" id="btn" /></li>
		</c:if>
		<li><a href="jsp/home.jsp">首页</a></li>
	</ul>
	<div class="clear"></div>
	<div id="login">
		<form action="userinfocontr/userlogin" method="post">
			<ul>
				
				<li>用户名：<input type="text" name="phone" />
				</li>
				<li>密&nbsp;&nbsp; 码：<input type="password" name="pwd" />
				</li>

				<li><input type="submit" value="登录" class="logo_btn" />
				</li>
				<li><a href="jsp/register.jsp">新用户注册</a>
				</li>

			</ul>
		</form>

	</div>

	


	<script type="text/javascript">
		$(function() {
			$("#btn").click(function() {
				layer.open({
					type : 1 //Page层类型
					,
					area : [ '500px', '400px' ],
					title : '登录. 欢迎使用mybugs系统',
					shade : 0.6 //遮罩透明度
					,
					anim : 1 //0-6的动画形式，-1不开启
					,
					content : $("#login")
				});
			});
			
			
		});
	</script>

</body>

</html>